<?php

	define('IN_SITE', true);

	include ("common.php");
	$ids = $_REQUEST['ids'];
	$lng = $_REQUEST['lang'];	 
	$ses_pro=$_SESSION["ses_pro"];
	$ses_pros=$_SESSION["ses_pros"];

	$langUrl=getOldUrl();

	$url=$_SERVER['HTTP_HOST'].$_SERVER['QUERY_STRING']; 
	$url= substr($url,strpos($url,".php"),strlen($url));
	$url=explode("/",$url);
	$act=$url[1] ? $url[1] :'hix';

	if($act=='hix'){
		include "top_homes.php";
	}else{
		include "top.php";
	}
	//------ th hien trang chu
	
	if($act=="contacts" || $act=="contact"){	
			echo '</TD>';
		}elseif($act=='hix'){	
			include "left_home.php";	
		}else{
			include "leftmain.htm";
		}
			//$url=$_SERVER['PHP_SELF']; 
			switch($act){
				case ($act=="products" || $act=="manufacturers"):
					include("products.php");	
					break;						
				case ($act=="songsearch"):
					include("songsearch.php");	
					break;			
				case ($act=="contact"):
					include("contact.php");	
					break;	
				case ($act=="contacts"):
					include("contacts.php");	
					break;			
				 case ($act=="Enquiry"):
					include("Enquiry.php");	
					break;			
				default:		
					include("main.php");	
					break;		
			}
			
		if($act!="manufacturers" && $act!="contacts" && $act!="contact"){
			if($act=='hix'){
				include "rights.php";
			}elseif($act=="Enquiry"){
				include "cot.php";
			}else{
				include "right.php";
			}
		}else{
			echo '</td><td width="5"></td><td valign="top" align="right">&nbsp;</td></tr></table>';
		}	

		if($act=='hix'){
			include "mainp.php";
		}
		include "bottom3-5.php";
		 $db->sql_close();
?>	